import request from '../../request/request_axios.js'

//用户登录接口(账户密码登录)
export const loginUserByAccount = (data) => {
    return request({
        url: '/user/login/password',
        method: 'post',
        data:data
    });
}

//测试登录接口是否携带session
export const testLogin = () => {
    return request({
        url: '/user/test',
        method: 'get'
    });
}

//获取就诊人信息
export const getPatientInfoAPI = () => {
    return request({
        url: '/user/self',
        method: 'get'
    });
}

//获取就诊人信息
export const getSelfFollowsAPI = () => {
    return request({
        url: '/user/follows',
        method: 'get'
    });
}

//新增就诊人信息
export const addPatientInfoAPI = (data) => {
    return request({
        url: '/patient/add',
        method: 'post',
        data: data
    });
}

//更新用户信息
export const updateUserInfoAPI = (data) => {
    return request({
        url: '/user/update',
        method: 'put',
        data: data
    });
}
